#coding:UTF-8
from __future__ import unicode_literals

from django.db import models

# Create your models here.
class Course(models.Model):
    '''课程信息'''
    title = models.CharField('课程名称',max_length=50)
    period = models.IntegerField('学时')
    desc = models.TextField('课程描述',blank=True)

    def __unicode__(self):
        return self.title

class Student(models.Model):
    '''学生信息'''
    name = models.CharField('姓名',max_length=200,unique=True,null=False)
    age = models.IntegerField('年龄')
    parent = models.CharField('家长',max_length=200,blank=False)

    def __unicode__(self):
        return self.name